package net.vkits.common.sms;

import net.vkits.anjiamiao.domain.event.TransferSuccessEvent;
import net.vkits.common.exceptions.SmsException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by ethan-liu on 16/6/2.
 */
public class TestSmsService implements SmsService {
    private static final Logger logger = LoggerFactory.getLogger(TestSmsService.class);

    @Override
    public void sendVerifyCode(String cellPhoneNum, String code) {
        logger.info("PhoneNumber: {} code: {}", cellPhoneNum, code);
    }

    @Override
    public void sendTransferSuccess(TransferSuccessEvent event) throws SmsException {
        logger.info("sendTransferSuccess: {} ", event);
    }

    @Override
    public void sendTransferFailure(String cellPhoneNum) throws SmsException {
        logger.info("sendTransferFailure: {} ", cellPhoneNum);
    }

    @Override
    public void sendRiskWarning(String cellPhoneNum) throws SmsException {
        logger.info("sendRiskWarning: {}", cellPhoneNum);
    }

    @Override
    public void sendLandlordTransferSuccess(TransferSuccessEvent event) throws SmsException {
        logger.info("sendLandlordTransferSuccess: {} ", event);
    }

    @Override
    public void sendRefundnotice(String cellPhoneNum, String rentAmount) throws SmsException {
        logger.info("sendRefundnotice: {} and {}", cellPhoneNum, rentAmount);
    }
}
